// import moment from 'moment';
import { computed } from 'vue';

// v-model 初始化值和更新值
export const vModelValue = (props, emits) => {
  const newValue = computed({
    get() {
      return props.modelValue;
    },
    set(val) {
      emits('update:modelValue', val);
    },
  });
  return { newValue };
};
